useruid: drop unnecessary dockerfile:1.4 frontend directive#48
Conversation
The generated uid_reconcile Dockerfile only uses ARG, FROM $ARG, USER, COPY, and RUN — all handled by buildkit's built-in frontend. The `# syntax=docker/dockerfile:1.4` declaration forced buildkit to pull docker/dockerfile:* from a registry before parsing, which hangs indefinitely in environments whose mirror routes docker.io through a broken upstream (observed on DAP workspaces routing through an ECR docker-hub mirror). Adds a test guard so the directive can't be reintroduced. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe ChangesBuildKit Syntax Directive Removal
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Summary
uid_reconcileDockerfile inuseruid.godeclared# syntax=docker/dockerfile:1.4, but the instructions it actually uses (ARG, FROM $ARG, USER, COPY, RUN) are all handled by buildkit's built-in frontend. The directive forces buildkit to pulldocker/dockerfile:*from a registry before parsing, which hangs indefinitely in environments whose mirror routes docker.io through a broken upstream (observed on DAP workspaces routing through an ECR docker-hub mirror).This is a narrow, minimum-risk fix. The companion PR #47 makes BuildKit the default builder (and applies the same fix to
feature/dockerfile.go); without this PR, the same hang would surface for anyuid_reconcilebuild after #47 lands.Test plan
go test ./...)TestGenerateUIDDockerfile_ContainsKeyDirectivesrejects any# syntax=directive🤖 Generated with Claude Code
Summary by CodeRabbit
Bug Fixes
Tests